<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>密钥类型</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="openssl.padding.html">« 非对称加密的填充标志</a></li>
      <li style="float: right;"><a href="openssl.pkcs7.flags.html">PKCS7 标志/常量 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="openssl.constants.html">预定义常量</a></li>
    <li>密钥类型</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="openssl.key-types" class="section">
   <h2 class="title">密钥类型</h2>
 <dl>
  
   <dt id="constant.openssl-keytype-rsa">
    <strong><code>OPENSSL_KEYTYPE_RSA</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.openssl-keytype-dsa">
    <strong><code>OPENSSL_KEYTYPE_DSA</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.openssl-keytype-dh">
    <strong><code>OPENSSL_KEYTYPE_DH</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.openssl-keytype-ec">
    <strong><code>OPENSSL_KEYTYPE_EC</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
     这个常量只有在使用OpenSSL 0.9.8+进行编译时才可用。
    </span>
   </dd>

    
 </dl>

   <blockquote class="note"><p><strong class="note">注意</strong>: 
    <p class="para">这个常量是在5.2.0版本中添加的.</p>
    <p class="para">
     <strong><code>OPENSSL_KEYTYPE_EC</code></strong>
    </p>
   </p></blockquote> 
  </div></div></div></body></html>